<%- p params%>

<table id="results">
	<tr><td><h3>Input Text : <%= h session[:input_text] -%></h3></td></tr>
	<%- key_num = 0 -%>
	<%- @keyword.each do |keywords| -%>
		<%- key_num += 1 -%>
		<tr><td><h3><%= h keywords[0] -%></h3></td></tr>
		<%- acc_num = 0 -%>		
		<%- keywords[1].each do |acceptation_id, acceptation_text| -%>
			<% acc_num += 1 %>
			<%- if acceptation_text != nil then -%>
				<tr><td>
					<strong><%= h acc_num -%></strong>. 
					<%- id = key_num.to_s+"_"+acc_num.to_s -%>
					<%= link_to_remote("#{h acceptation_text}",
						:update => "example#{id}",
						:url => {:action => "show_example2", :acceptation_id => acceptation_id, :id => id, :key => keywords[0] }
					) %>
				</td></tr>
				<tr><td><div id="example<%= id -%>"></div></td></tr>
			<%- end -%>
		<%- end -%>
	<%- end if @keyword != nil -%>
</table>

